package com.zareal.ymcc.feign;

import com.zareal.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {
    /**
     * 点击页面进去获取视频信息
     */
    @RequestMapping(value = "/mediaFile/course/{courseId}",method = RequestMethod.GET)
    JSONResult selectMediaByCourseId(@PathVariable("courseId")Long courseId);
}
